Skip to content

support read rustup toolchain from env#88

Open
Bandeapart1964 wants to merge 1 commit into
heckmon:mainfrom
Bandeapart1964:support_rustup_toolchain_from_env
Open

support read rustup toolchain from env#88
Bandeapart1964 wants to merge 1 commit into
heckmon:mainfrom
Bandeapart1964:support_rustup_toolchain_from_env

Conversation

@Bandeapart1964

Copy link
Copy Markdown

Hi, I added a line to read rustup toolchain version from shell environment “RUSTUP_TOOLCHAIN”, it allows user to use an installed or speficied toolchain, rather than force use 'stable'.

ps. The environment name from the rustup book

thx your work!

@heckmon

heckmon commented Jul 9, 2026

Copy link
Copy Markdown
Owner

Okay, but what's the point of using another version rather than the stable?

@Bandeapart1964

Copy link
Copy Markdown
Author

stable is not a fixed version number, if it build fails for some reasons, then I can specified to last available version.

another reason is when i already installed a toolchain and use it in my project, I don't expect download another one when building code forge.

@Bandeapart1964

Bandeapart1964 commented Jul 9, 2026

Copy link
Copy Markdown
Author

since the cargokit use rustup specified toolchain before run cargo, so it will ignore default toolchain in system, that means code forege always use stable rust toolchain, even I set another one as default in my system

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants